/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jmenu.gui;

import javax.swing.JComboBox;
import jmenu.dbmodels.MSectionsOfFood;
import jmenu.main.Config;

/**
 *
 * @author sevcik.roman
 */
public class CategoryComboBox extends JComboBox
{
    public CategoryComboBox()
    {
        super();

        this.removeAllItems();
        this.addItem("Vyberte možnost");
    }

     public void loadData(MSectionsOfFood sections)
     {
        for (int j = 0; j < sections.getRows().size(); j++)
            this.addItem(sections.getRow(j).getName());
     }

}
